#include <iostream>
#include <string.h>
using namespace std;

int main() {
    char allResult[100];
    int i = 0;

    string oneResList[100];
    string twoResList[100];

    while (true)
    {
        cin >> allResult[i];
        i++;
        if (strcmp(&allResult[i], "E") == 0)
        {
            break;
        }
    }

    int oneWinNum = 0, oneFailedNum = 0, oneRound = 1;
    int twoWinNum = 0, twoFailedNum = 0, twoRound = 1;
    for (int j = 0; j <= i; j++)
    {
        char* temp = &allResult[j];    
        cout << temp << "||" << endl;
        if (strcmp(temp, "W") == 0)
        {
            oneWinNum++;
            twoWinNum++;
        } else if (strcmp(temp, "L") == 0)
        {
            oneFailedNum++;
            twoFailedNum++;
        }
        if (j % 11 == 0)
        {
            // 输出11分制每局结果
            oneResList[oneRound] = printf("%d:%d\n", oneWinNum, oneFailedNum);
            oneWinNum = 0;
            oneFailedNum = 0;
            oneRound++;
        }
        if (j % 21 == 0) {
            // 输出21分制每局结果
            twoResList[twoRound] = printf("%d:%d\n", twoWinNum, twoFailedNum);
            twoWinNum = 0;
            twoFailedNum = 0;
            twoRound++;
        }
    }
    
    // return 0;
}